﻿<div class="form-horizontal" style="margin:10px  auto auto 50px; " ms-controller="HDBMADD">
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动发起方</label>
        <div class="col-xs-4">
            <input type="text" ms-duplex="modelData.HDFQF" class="form-control  szhl_require" placeholder="请输入活动发起方" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动时间</label>
        <div class="col-xs-4">
            <input type="text" ms-duplex="modelData.HDTime" class="szhl_form_date form-control szhl_require" placeholder="请输入活动时间" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动报名截止时间</label>
        <div class="col-xs-4">
            <input type="text" ms-duplex="modelData.HDBMEndTime" class="szhl_form_date   form-control szhl_require" placeholder="请输入活动截止时间" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动主题</label>
        <div class="col-xs-8">
            <input type="text" ms-duplex="modelData.HDTitle" class="form-control szhl_require" placeholder="请输入活动主题" />
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动地址</label>
        <div class="col-xs-8">
            <input type="text" ms-duplex="modelData.HDAdress" class="form-control szhl_require  " placeholder="请输入活动地址" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动参与人</label>
        <div class="col-xs-8">
            <input type="text" ms-duplex="modelData.HDPeople" class="form-control szhl_getPeoples" placeholder="请输入活动参与人" />
            <p class="text-danger">默认全部人员均能收到通知</p>
        </div>
    </div>
    <div class="form-group hide">
        <label class="col-xs-3 control-label"><span class="Required">*</span>是否公开</label>
        <div class="col-xs-8">
            <div class="checkbox">
                <label>
                    <input type="checkbox" ms-duplex-checked="modelData.isPublic" />
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>附件</label>
        <div class="col-xs-8">
            <input type="text" ms-duplex="modelData.Files" class="form-control  szhl_Upload" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label"><span class="Required">*</span>活动内容</label>
        <div class="col-xs-8">
            <textarea type="text" ms-duplex="modelData.HDContent" id="conContent" class="form-control szhl_require szhl_UEEDIT" placeholder="请输入活动内容" />
        </div>
    </div>
</div>
<script>
    var model = avalon.define({
        $id: "HDBMADD",
        modelData: { "HDFQF": "", "HDTime": "", "HDBMEndTime": "", "HDTitle": "", "HDAdress": "", "HDPeople": "", "HDContent": "","isPublic":"","Files":"" }
    });
    function getdata() {
        var modelValue = JSON.stringify(model.modelData.$model);
        return { Action: "ADDHDBM", P1: modelValue };
    }
    avalon.ready(function () {
        var strId = ComFunJS.getQueryString("ID");
        if (strId != null) {
            $.getJSON('/API/FTAPI.ashx?Action=GETHDBMMODEL', { P1: strId }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    model.modelData = resultData.Result;
                }
            })
        }
    })
</script>